package com.week.tiny_video.dao;

import com.week.tiny_video.pojo.Concern;
import com.week.tiny_video.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ConcernDao extends JpaRepository<Concern,Integer> {

    public List<Concern> findAllByFans(User user);

    public List<Concern> findAllByFollowUser(User user);

    public Concern findByFollowUserAndFans(User follow,User fans);

}
